import { request, config } from 'utils'

const { api } = config
const { userLogin, retrieveUserPwdUrl} = api

export async function login (data) {
  return request({
    url: userLogin,
    method: 'post',
    data,
  })
}

export async function retrieveUserPwd (data) {
  return request({
    url: retrieveUserPwdUrl+'?email='+data,
    method: 'post',
  })
}